//
//  Weather.m
//  OC1_类和对象课后作业
//
//  Created by dllo on 15/10/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Weather.h"

@implementation Weather

-(id)init
{

    _name = @"晴天";
    _feel = @"nice";
    [self info];
    return self;

}

-(void)info
{

    NSLog(@"%@ %@", _name, _feel);

}

-(void)choose
{

    NSLog(@"如果是%@,我会感觉非常%@", _name, _feel);

}

-(id)initWithName:(NSString *)name feel:(NSString *)feel
{

    _name = name;
    _feel = feel;
    return self;

}

-(NSString *)name
{
    return _name;
}

-(void)setName:(NSString *)name
{
    _name = name;
}
-(NSString *)feel
{
    return _feel;
}
-(void)setFeel:(NSString *)feel
{
    _feel = feel;
}


+ (id)weatherWithName:(NSString *)name feel:(NSString *)feel
{
    Weather *w = [[Weather alloc] initWithName:name feel:feel];
    return w;
}



@end
